package com.example.train.service.impl;

import com.example.train.service.SysAdminPermissionRelationService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.example.train.model.SysAdminPermissionRelation;
import com.example.train.mapper.SysAdminPermissionRelationMapper;

import java.util.List;

@Service
public class SysAdminPermissionRelationServiceImpl implements SysAdminPermissionRelationService {

    @Resource
    private SysAdminPermissionRelationMapper sysAdminPermissionRelationMapper;

    @Override
    public int deleteByAdminId(long id) {
        return sysAdminPermissionRelationMapper.deleteByAdminId(id);
    }

    @Override
    public int insert(List<SysAdminPermissionRelation> records) {
        return sysAdminPermissionRelationMapper.insert(records);
    }

}
